#ifndef __BALL_H__
#define __BALL_H__

#include <Ogre.h>
using namespace Ogre;

class Marble : public FrameListener
{
public:
	Marble();
	Marble(SceneManager *mgr, Vector3 pos);
	~Marble();

	void start();
	//void registerTracks();
	bool frameStarted(const FrameEvent& evt);
	bool frameEnded(const FrameEvent& evt);
	bool collision(Vector3 point1, Vector3 point2, Vector3 point3);

private:
	Ogre::Entity *mMarble;
	Ogre::SceneNode *mNode;
	Ogre::Vector3 mVelocity;
	Ogre::Vector3 mAcceleration;
	Ogre::Real mMass;
	Ogre::SceneManager *mSceneMgr;
};

#endif